﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Matrix_network
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Session.Add("usr_id", Page.User.Identity.UserId());
        }

        protected void imgSearch_Click(object sender, ImageClickEventArgs e)
        {
            Session.Add("SearchStr", txtSearch.Text);
            Response.Redirect("~/PeopleLists/PeopleSearch.aspx");
        }

        protected void exit_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            FormsAuthentication.RedirectToLoginPage();
        }
    }
}
